<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    console.log(0xaa.toString(2)) // 10101010
    console.log(0xaa.toString(10)) // 170
    console.log(0xaa.toString(4)) // 2222
    console.log("170".toString(8)) // 252
</script>
</html>